package com.ruoyi.system.domain;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import start.spring.basic.ry.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;


/**
 * redis配置对象 gg_pz_redis
 * 
 * @author xuyy
 * @date 2023-08-07
 */
@Data
@TableName("gg_pz_redis")
@ApiModel(value="gg_pz_redis表映射对象", description="")
public class GgPzRedis implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "redis唯一标志")
    @TableField("redis_id")
    @Excel(name = "redis唯一标志")
    private String redisId;

    @ApiModelProperty(value = "访问地址")
    @TableField("ip")
    @Excel(name = "访问地址")
    private String ip;

    @ApiModelProperty(value = "端口")
    @TableField("port")
    @Excel(name = "端口")
    private Integer port;

    @ApiModelProperty(value = "密码")
    @TableField("pwd")
    private String pwd;

    @ApiModelProperty(value = "最大连接数")
    @TableField("max_total")
    @Excel(name = "最大连接数")
    private Integer maxTotal;

    @ApiModelProperty(value = "最大闲置数")
    @TableField("max_idle")
    @Excel(name = "最大闲置数")
    private Integer maxIdle;

    @ApiModelProperty(value = "等待时间")
    @TableField("max_wait_millis")
    @Excel(name = "等待时间")
    private Long maxWaitMillis;

    @ApiModelProperty(value = "超时时间")
    @TableField("timeout")
    @Excel(name = "超时时间")
    private Long timeout;

    @ApiModelProperty(value = "配置说明")
    @TableField("bz")
    @Excel(name = "配置说明")
    private String bz;

	
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("redisId", getRedisId())
            .append("ip", getIp())
            .append("port", getPort())
            .append("pwd", getPwd())
            .append("maxTotal", getMaxTotal())
            .append("maxIdle", getMaxIdle())
            .append("maxWaitMillis", getMaxWaitMillis())
            .append("timeout", getTimeout())
            .append("bz", getBz())
            .toString();
    }
}
